<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
     <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
</head>

<body style="color:#333;padding:3px;overflow-x: auto;">
    <!-- 标题 -->
    <div class="page-heade clearfix">
      <h1 class="clearfix"><a class="col-md-6 title_color H_right" id="Ap1" style="display: inline-block;font-size: 20px;color:#333;" href="{:url('fypm')}">所属经销商发运排名</a> <a class="col-md-6 title_color H_active"  id="Ap2" style="font-size: 20px;display: inline-block;" href="{:url('fycx')}">所属经销商发运明细查询</a></h1>
    </div>
    <!-- 标题 -->
    <div>
     <form action="#" method="post" id="form_check" class="form-inline formpage">
     <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
      <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">发运类型</label><span class="helpText">帮</span></td>
            <td>
              <select name="fyType" id="" class="form-control">
                  <option value="0" {if $data.fyType==0} selected {/if}>所有发运</option>
                 <option value="1" {if $data.fyType==1} selected {/if}>搭赠</option>
                 <option value="2" {if $data.fyType==2} selected {/if}>非搭赠</option>
              </select>
            </td>
           <td style="min-width: 120px;width: 120px"><label for="" class="form-label">分区</label></td>
            <td><input type="text" class="form-control" name="fenqu" value="{$data.fenqu}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">省份</label></td>
            <td><input type="text" class="form-control" name="sheng" value="{$data.sheng}"></td>
        </tr>
        <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">城市</label></td>
            <td><input type="text" class="form-control" name="shi" value="{$data.shi}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商编号</label></td>
            <td><input type="text" class="form-control" name="jno" value="{$data.jno}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商名称</label></td>
            <td><input type="text" class="form-control" name="jname" value="{$data.jname}"></td>
        </tr>
        <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">网点编号</label></td>
            <td><input type="text" class="form-control" name="nno" value="{$data.nno}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">网点名称</label></td>
            <td><input type="text" class="form-control" name="nname" value="{$data.nname}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">品牌</label></td>
            <td><input type="text" class="form-control" name="brand" value="{$data.brand}"></td>
        </tr>
        <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">品类</label></td>
            <td><input type="text" class="form-control" name="category" value="{$data.category}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">系列</label></td>
            <td><input type="text" class="form-control" name="series" value="{$data.series}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">SKU</label></td>
            <td><input type="text" class="form-control" name="sku" value="{$data.sku}"></td>
        </tr>
        <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">产品编码</label></td>
            <td><input type="text" class="form-control" name="pno" value="{$data.pno}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">产品名称</label></td>
            <td><input type="text" class="form-control" name="pname" value="{$data.pname}"></td>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">发运日期</label></td>
            <td>
                 <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="min-width:100px;width:100px;display: inline-block;" name="start" value="{$data.start}">
           </div>
            <div class="form-group">
                至
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:100px;width:100px;display: inline-block;" id="end" name="end" value="{$data.end}">
           </div>
            </td>
        </tr>
          <tr>
            <td colspan="6" class="text-center">
           <button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
                    <button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
           <button class="btn btn-info LendExcel" type="button">导出Excel</button>
            </td>
          </tr>
      </table>
    
      <table class="table row-margin-top table-bordered text-center bud_hei">
         <tr>
      <th colspan="22" class="font-bold">
        数量合计：<span class="ObjectNum">{$sumshuliang}</span> &nbsp; &nbsp;
       发运开票金额合计：<span class="ObjectNum" id="overUpMoney">{$sumjine}</span>元
      </th>
         </tr>
          <tr class="info text-center">
            <th style="min-width: 40px;width: 40px" class="text-center">NO.</th>
            <th style="min-width: 100px;width: 100px" class="text-center">分区</th>
            <th style="min-width: 100px;width: 100px" class="text-center">省份</th>
            <th style="min-width: 100px;width: 100px" class="text-center">城市</th>
            <th style="min-width: 140px;width: 140px" class="text-center">售达方<br>经销商编号</th>
            <th style="min-width: 240px;width: 240px" class="text-center">售达方经销商名称</th>
            <th style="min-width: 140px;width: 140px" class="text-center">售达方<br>网点编号</th>
            <th style="min-width: 220px;width: 220px" class="text-center">售达方网点名称</th>
            <th style="min-width: 140px;width: 140px" class="text-center">产品编码</th>
            <th style="min-width: 220px;width: 220px" class="text-center">产品名称</th>
            <th style="min-width: 120px;width: 120px" class="text-center">数量</th>
            <th style="min-width: 80px;width: 80px" class="text-center">发运<br>基本单位</th>
            <th style="min-width: 120px;width: 120px" class="text-center">发运开票金额</th>
            <th style="min-width: 120px;width: 120px" class="text-center">毛发运金额</th>
            <th style="min-width: 120px;width: 120px" class="text-center">净发运金额</th>
            <th style="min-width: 120px;width: 120px" class="text-center">发运日期</th>
            <th style="min-width: 140px;width: 140px" class="text-center">订单号</th>
            <th style="min-width: 140px;width: 140px" class="text-center">发运单号</th>
            <th style="min-width: 100px;width: 100px" class="text-center">批号/批次</th>
            <th style="min-width: 140px;width: 140px" class="text-center">备注</th>
            <th style="min-width: 100px;width: 100px" class="text-center">销售人员</th>
          </tr>
          {volist name="apply" id="vo"}
            <tr>
                <td>{$i}</td>
                <td>{$vo.fenqu}</td>
                <td>{$vo.sheng}</td>
                <td>{$vo.shi}</td>
                <td>{$vo.jsn}</td>
                <td class="text-left">{$vo.jxs}</td>
                <td>{$vo.netsn}</td>
                <td class="text-left">{$vo.net}</td>
                <td>{$vo.pro_no}</td>
                <td class="text-left">{$vo.pro_name}</td>
                <td class="text-right">{$vo.fyNum}</td>
                <td>{$vo.fyBasicUnit}</td>
                <td class="ObjectNum">{$vo.fyZheMoney}</td>
                <td class="ObjectNum">{$vo.fyMaoMoney}</td>
                <td class="ObjectNum">{$vo.fyJingMoney}</td>
                <td>{$vo.fyDate}</td>
                <td>{$vo.orderNumber}</td>
                <td>{$vo.fyONumber}</td>
                <td>{$vo.batchNumber}</td>
                <td>{$vo.des}</td>
                <td>{$vo.salesman}</td>
            </tr>
          {/volist}
          
      </table>
      <h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            <script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>每页显示
           <select id="pagesize">
                        <option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
                        <option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>

            </select>
        </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    $(".LendExcel").click(function(){
      window.open("{:url('fycxdc')}")
    })
      
        $("#check").click(function(){
              
              $(".formpage").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            $("select").val(0);
              $(".formpage").submit();
        })
      
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY-MM-DD',
            //min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY-MM-DD',
            //min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
        $(document).ready(function(){
          var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
        })
    </script>
</body>

</html>
